package com.common.orm;

import java.lang.reflect.Method;

/**
 * @author Dmitry Savchenko
 */
class MethodColumnPair {

    private Method getter;
    private Method setter;
    private String column;
    private Method ResultSetGetter;
    private Method PreparedStatementValueSetter;
    private Class fieldType;
    private boolean isArray=false;
    private boolean primaryKey = false;

    public Class getFieldType() {
        return fieldType;
    }

    public void setFieldType(Class fieldType) {
        this.fieldType = fieldType;
    }

    public String getColumn() {
        return column;
    }

    public void setColumn(String column) {
        this.column = column;
    }

    public Method getGetter() {
        return getter;
    }

    public void setGetter(Method getter) {
        this.getter = getter;
    }

    public Method getSetter() {
        return setter;
    }

    public void setSetter(Method setter) {
        this.setter = setter;
    }

    public Method getResultSetGetter() {
        return ResultSetGetter;
    }

    public void setResultSetGetter(Method ResultSetGetter) {
        this.ResultSetGetter = ResultSetGetter;
    }

    public Method getPreparedStatementValueSetter() {
        return PreparedStatementValueSetter;
    }

    public void setPreparedStatementValueSetter(Method PreparedStatementValueSetter) {
        this.PreparedStatementValueSetter = PreparedStatementValueSetter;
    }

    public boolean isPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(boolean isPrimaryKey) {
        this.primaryKey = isPrimaryKey;
    }

    public boolean isIsArray() {
        return isArray;
    }

    public void setIsArray(boolean isArray) {
        this.isArray = isArray;
    }
    
    
}
